package cn.singleton;

/**
 * @auth wzy
 * @date 2023/11/4 9:30
 */
public class WaFactoryTest {

    public static void main(String[] args) {
//        WaFactory waFactory = WaFactory.getInstance();
//        WaFactory waFactory2 = WaFactory.getInstance();
//        WaFactory waFactory3 = WaFactory.getInstance();
//
//        System.out.println("waFactory = " + waFactory);
//        System.out.println("waFactory2 = " + waFactory2);
//        System.out.println("waFactory3 = " + waFactory3);


        WaRunnable zhaoRunnable = new WaRunnable();

        for (int i = 0; i <10;i++) {
            new Thread(zhaoRunnable).start();
        }

    }
}
